package com.aos.erp.manager.model.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @program: erp
 * @description: 角色
 * @author: tanzhiyu
 * @create: 2018-11-23 09:30
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("机构角色")
@TableName("t_sys_role")
public class Role implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID", hidden = true)
    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    @ApiModelProperty("1:学员预录入（现场照）;2:学员预录入（指纹）3:学员预录入（证件照）4:学员预录入（暂住证）5:学员预录入（身份证正/反面）6:学员预录入（原驾驶证，增驾学员）7:学员预录入（体检表）\\r\\n")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("1：选填 2：必填")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("权限系统角色id")
    @TableField("roleId")
    private long roleId;
}
